<?php

namespace app\admin\validate;
use think\Validate;

class conf extends Validate {

    protected $rule = [
        'cnname' => 'require|unique:config',
        'enname' => 'require|unique:config',

    ];

    protected $message = [
        'cnname.require' => '配置项中文名不能为空',
        'cnname.unique' => '配置项中文名不能重复',
        'enname.require' => '配置项英文名不能为空',
        'enname.unique' => '配置项英文名不能重复',

    ];


}